Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.6] unittest: handle outcomes.Exit #5649

Closed

Conversation

nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented Jul 23, 2019

Backport of #5634

@nicoddemus
Copy link
Member Author

Hmm gave this a try but couldn't fix the error no py27-twisted. Others are free to pick this up. 👍

@nicoddemus nicoddemus closed this Jul 23, 2019
@nicoddemus nicoddemus deleted the backport-5634 branch July 23, 2019 14:39
@blueyed
Copy link
Contributor

blueyed commented Jul 23, 2019

For reference:

________________________________ TC.test_four _________________________________
self = <test_trial_error.TC testMethod=test_four>, args = ()
kwargs = {'result': <TestCaseFunction test_four>}
    def __call__(self, *args, **kwargs):
>       return self.run(*args, **kwargs)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_synctest.py:1043: in run
    _collectWarnings(self._warnings.append, self._runFixturesAndTest, result)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_synctest.py:181: in _collectWarnings
    result = f(*args, **kwargs)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:302: in _runFixturesAndTest
    self._cleanUp(result)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <test_trial_error.TC testMethod=test_four>
result = <TestCaseFunction test_four>
    def _cleanUp(self, result):
        try:
            clean = util._Janitor(self, result).postCaseCleanup()
            if not clean:
                self._passed = False
        except:
>           result.addError(self, failure.Failure())
E           IndexError: tuple index out of range
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:213: IndexError
________________________________ TC.test_three _________________________________
self = <test_trial_error.TC testMethod=test_three>, args = ()
kwargs = {'result': <TestCaseFunction test_three>}
    def __call__(self, *args, **kwargs):
>       return self.run(*args, **kwargs)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_synctest.py:1043: in run
    _collectWarnings(self._warnings.append, self._runFixturesAndTest, result)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_synctest.py:181: in _collectWarnings
    result = f(*args, **kwargs)
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:302: in _runFixturesAndTest
    self._cleanUp(result)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <test_trial_error.TC testMethod=test_three>
result = <TestCaseFunction test_three>
    def _cleanUp(self, result):
        try:
            clean = util._Janitor(self, result).postCaseCleanup()
            if not clean:
                self._passed = False
        except:
>           result.addError(self, failure.Failure())
E           IndexError: tuple index out of range
/home/travis/build/pytest-dev/pytest/.tox/py27-twisted/lib/python2.7/site-packages/twisted/trial/_asynctest.py:213: IndexError
====================== 2 failed, 2 passed in 0.85 seconds ======================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants